import Vue from 'vue'
import Router from 'vue-router'
/* Layout */
import Layout from '@/views/layout/Layout'

// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading

Vue.use(Router)

/** note: submenu only apppear when children.length>=1
 *   detail see  https://panjiachen.github.io/vue-element-admin-site/#/router-and-nav?id=sidebar
 **/

/**
 * hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
 * alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
 *                                if not set alwaysShow, only more than one route under the children
 *                                it will becomes nested mode, otherwise not show the root menu
 * redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
 * meta : {
    title: 'title'               the name show in submenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar,
  }
 **/
export const constantRouterMap = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: 'dashboard',
    hidden: true,
    children: [
      {
        path: 'dashboard',
        component: () => import('@/views/dashboard/index'),
        name: 'dashboard',
        meta: {
          title: '首页',
          icon: 'dashboard',
          noCache: true
        }
      },
      {
        path: 'updatepassword',
        component: () => import('@/views/updatepassword/index'),
        name: 'updatepassword',
        meta: {
          title: '修改密码'
        }
      },
      {
        path: 'systeminfor',
        component: () => import('@/views/systeminfor/index'),
        name: 'systeminfor',
        meta: {
          title: '系统消息'
        }
      }
    ]
  }
]

export default new Router({
  // mode: 'history', //后端支持可开
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})

export const asyncRouterMap = [
  {
    path: '/operating',
    component: Layout,
    redirect: '/operating/contractproject',
    name: 'operating',
    meta: {
      title: '运营中心',
      icon: 'operating'
    },
    children: [
      {
        path: 'contractproject',
        name: 'contractproject',
        component: () => import('@/views/operating/contractproject/index'),
        meta: {
          title: '合同项目管理'
        }
      },
      {
        path: 'tenders',
        name: 'tenders',
        component: () => import('@/views/operating/tenders/index'),
        meta: {
          title: '招投标项目管理'
        }
      },
      {
        path: 'projectreport',
        name: 'projectreport',
        component: () => import('@/views/operating/projectreport/index'),
        meta: {
          title: '项目报备'
        }
      },
      {
        path: 'companyInformation',
        name: 'companyInformation',
        component: () => import('@/views/operating/companyInformation/index'),
        meta: {
          title: '公司资料库'
        }
      },
      {
        path: 'personnelInformation',
        name: 'personnelInformation',
        component: () => import('@/views/operating/personnelInformation/index'),
        meta: {
          title: '人员资料库'
        }
      },
      {
        path: 'infoborrowlog',
        name: 'infoborrowlog',
        component: () => import('@/views/operating/infoborrowlog/index'),
        meta: {
          title: '外借资料管理'
        }
      },
      {
        path: 'teamtype',
        name: 'teamtype',
        component: () => import('@/views/operating/teamtype/index'),
        meta: {
          title: '团队类型'
        }
      },
      {
        path: 'teams',
        name: 'teams',
        component: () => import('@/views/operating/teams/index'),
        meta: {
          title: '团队信息'
        }
      },
      // {
      //   path: 'infobase',
      //   name: 'infobase',
      //   component: () => import('@/views/operating/infobase/index'),
      //   meta: {
      //     title: '公司资料信息'
      //   }
      // },
      {
        path: 'professional',
        name: 'professional',
        component: () => import('@/views/operating/professional/index'),
        meta: {
          title: '专业分类'
        }
      },
      {
        path: 'filiale',
        name: 'filiale',
        component: () => import('@/views/operating/filiale/index'),
        meta: {
          title: '分公司筹建'
        }
      },
      {
        path: '/operating/outreach',
        redirect: '/operating/outreach/outcompany',
        name: 'outreach',
        component: () => import('@/views/operating/outreach/index'),
        meta: {
          title: '外联管理'
        },
        children: [
          {
            path: 'outcompany',
            name: 'outcompany',
            component: () => import('@/views/operating/outreach/outcompany/index'),
            meta: {
              title: '外联单位'
            }
          },
          {
            path: 'outitems',
            name: 'outitems',
            component: () => import('@/views/operating/outreach/outitems/index'),
            meta: {
              title: '外联项目'
            }
          },
          {
            path: 'outcost',
            name: 'outcost',
            component: () => import('@/views/operating/outreach/outcost/index'),
            meta: {
              title: '外联项目支出表'
            }
          },
          {
            path: 'outbill',
            name: 'outbill',
            component: () => import('@/views/operating/outreach/outbill/index'),
            meta: {
              title: '外联项目到账'
            }
          },
          {
            path: 'outinfo',
            name: 'outinfo',
            component: () => import('@/views/operating/outreach/outinfo/index'),
            meta: {
              title: '外联资料类型'
            }
          },
          {
            path: 'info',
            name: 'info',
            component: () => import('@/views/operating/outreach/info/index'),
            meta: {
              title: '外联资料表'
            }
          }
        ]
      }
    ]
  },
  {
    path: '/financial',
    component: Layout,
    redirect: '/financial/expenditure',
    name: 'financial',
    meta: {
      title: '财务中心',
      icon: 'financial'
    },
    children: [
      {
        path: 'bankbalance',
        name: 'bankbalance',
        component: () => import('@/views/financial/bankbalance/index'),
        meta: {
          title: '资金管理'
        }
      },
      {
        path: '/financial/expenditure',
        redirect: '/financial/expenditure/costproject',
        name: 'expenditure',
        component: () => import('@/views/financial/expenditure/index'),
        meta: {
          title: '报销管理'
        },
        children: [
          {
            path: 'costproject',
            name: 'costproject',
            component: () => import('@/views/financial/expenditure/costproject/index'),
            meta: {
              title: '成本支出'
            }
          },
          {
            path: 'costbrandbuild',
            name: 'costbrandbuild',
            component: () => import('@/views/financial/expenditure/costbrandbuild/index'),
            meta: {
              title: '品牌构建支出'
            }
          }
          // {
          //   path: 'withdrawcash',
          //   name: 'withdrawcash',
          //   component: () => import('@/views/financial/expenditure/withdrawcash/index'),
          //   meta: {
          //     title: '团队支出'
          //   }
          // },
          // {
          //   path: 'tenderdeposit',
          //   name: 'tenderdeposit',
          //   component: () => import('@/views/financial/expenditure/tenderdeposit/index'),
          //   meta: {
          //     title: '投标保证金支出'
          //   }
          // },
          // {
          //   path: 'projectdeposit',
          //   name: 'projectdeposit',
          //   component: () => import('@/views/financial/expenditure/projectdeposit/index'),
          //   meta: {
          //     title: '履约保证金支出'
          //   }
          // },
          // {
          //   path: 'tendercompensation',
          //   name: 'tendercompensation',
          //   component: () => import('@/views/financial/expenditure/tendercompensation/index'),
          //   meta: {
          //     title: '投标补偿金'
          //   }
          // }
        ]
      },
      {
        path: 'invoice',
        name: 'invoice',
        component: () => import('@/views/financial/invoice/index'),
        meta: {
          title: '开票管理'
        }
      },
      {
        path: 'tenderdeposit',
        name: 'tenderdeposit',
        component: () => import('@/views/financial/tenderdeposit/index'),
        meta: {
          title: '投标保证金管理'
        }
      },
      {
        path: 'projectdeposit',
        name: 'projectdeposit',
        component: () => import('@/views/financial/projectdeposit/index'),
        meta: {
          title: '履约保证金管理'
        }
      },
      {
        path: 'reimbursement',
        name: 'reimbursement',
        component: () => import('@/views/financial/reimbursement/index'),
        meta: {
          title: '报销管理2'
        }
      },
      {
        path: '/financial/toaccount',
        redirect: '/financial/toaccount/projectcontrac',
        name: 'toaccount',
        component: () => import('@/views/financial/toaccount/index'),
        meta: {
          title: '到账管理'
        },
        children: [
          {
            path: 'projectcontrac',
            name: 'projectcontrac',
            component: () => import('@/views/financial/toaccount/projectcontrac/index'),
            meta: {
              title: '合同到账'
            }
          },
          // {
          //   path: 'otherarrival',
          //   name: 'otherarrival',
          //   component: () => import('@/views/financial/toaccount/otherarrival/index'),
          //   meta: {
          //     title: '其他到账'
          //   }
          // },
          // {
          //   path: 'tenderdeposit',
          //   name: 'tenderdeposit',
          //   component: () => import('@/views/financial/toaccount/tenderdeposit/index'),
          //   meta: {
          //     title: '投标保证金'
          //   }
          // },
          // {
          //   path: 'projectdeposit',
          //   name: 'projectdeposit',
          //   component: () => import('@/views/financial/toaccount/projectdeposit/index'),
          //   meta: {
          //     title: '履约保证金'
          //   }
          // },
          {
            path: 'tendercompensation',
            name: 'tendercompensation',
            component: () => import('@/views/financial/toaccount/tendercompensation/index'),
            meta: {
              title: '投标补偿金到账'
            }
          },
          {
            path: 'currentaccount',
            name: 'currentaccount',
            component: () => import('@/views/financial/toaccount/currentaccount/index'),
            meta: {
              title: '往来账'
            }
          },
          {
            path: 'otherfees',
            name: 'otherfees',
            component: () => import('@/views/financial/toaccount/otherfees/index'),
            meta: {
              title: '其他到账'
            }
          }
        ]
      },
      {
        path: '/financial/statement',
        redirect: '/financial/statement/teambalance',
        name: 'statement',
        component: () => import('@/views/financial/statement/index'),
        meta: {
          title: '报表管理'
        },
        children: [
          // {
          //   path: 'paymentdetails',
          //   name: 'paymentdetails',
          //   component: () => import('@/views/publicresourcedetails/paymentdetails/index'),
          //   meta: {
          //     title: '总院收支明细'
          //   }
          // },
          {
            path: 'teambalance',
            name: 'teambalance',
            component: () => import('@/views/publicresourcedetails/teambalance/index'),
            meta: {
              title: '团队明细表'
            }
          },
          {
            path: 'teamsettlement',
            name: 'teamsettlement',
            component: () => import('@/views/publicresourcedetails/teamsettlement/index'),
            meta: {
              title: '团队结算'
            }
          },
          {
            path: 'projectdetails',
            name: 'projectdetails',
            component: () => import('@/views/publicresourcedetails/projectdetails/index'),
            meta: {
              title: '项目明细表'
            }
          },
          {
            path: 'teamprofits',
            name: 'teamprofits',
            component: () => import('@/views/publicresourcedetails/financialdetails/teamprofits/index'),
            meta: {
              title: '利润表'
            }
          }
        ]
      },
      {
        path: '/financial/administrativecost',
        redirect: '/financial/administrativecost/propertycharge',
        name: 'administrativecost',
        component: () => import('@/views/financial/administrativecost/index'),
        meta: {
          title: '行政费用查询'
        },
        children: [
          {
            path: 'propertycharge',
            name: 'propertycharge',
            component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertycharge/index'),
            meta: {
              title: '团队月费用表'
            }
          },
          {
            path: 'contractdeal',
            name: 'contractdeal',
            component: () => import('@/views/management/administrativemanagement/record/contractdeal/index'),
            meta: {
              title: '合同协议'
            }
          },
          {
            path: 'insurancecost',
            name: 'insurancecost',
            component: () => import('@/views/management/personnel/staffrelations/insurance/insurancecost/index'),
            meta: {
              title: '社保公积金'
            }
          },
          {
            path: 'employeepay',
            name: 'employeepay',
            component: () => import('@/views/management/personnel/payrollbenefits/compensation/employeepay/other'),
            meta: {
              title: '人员工资支出'
            }
          }
        ]
      },
      {
        path: 'monthreport',
        name: 'monthreport',
        component: () => import('@/views/financial/monthreport/index'),
        meta: {
          title: '月报表'
        }
      }
    ]
  },
  {
    path: '/management',
    redirect: '/financial/administrativemanagement',
    component: Layout,
    name: 'management',
    meta: {
      title: '管理中心',
      icon: 'management'
    },
    children: [
      {
        path: '/management/administrativemanagement',
        redirect: '/financial/administrativemanagement/assetsconsumables',
        name: 'administrativemanagement',
        component: () => import('@/views/management/administrativemanagement/index'),
        meta: {
          title: '行政管理'
        },
        children: [
          {
            path: '/management/administrativemanagement/sealmanagement',
            redirect: '/financial/administrativemanagement/sealmanagement/use',
            name: 'sealmanagement',
            component: () => import('@/views/management/administrativemanagement/sealmanagement/index'),
            meta: {
              title: '印章管理'
            },
            children: [
              // {
              //   path: 'use',
              //   name: 'use',
              //   component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
              //   meta: {
              //     title: '印章管理制度'
              //   }
              // },
              // {
              //   path: 'use',
              //   name: 'use',
              //   component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
              //   meta: {
              //     title: '印章使用流程'
              //   }
              // },
              {
                path: 'sealmanagementchild',
                name: 'sealmanagementchild',
                component: () => import('@/views/management/administrativemanagement/sealmanagement/sealmanagementchild/index'),
                meta: {
                  title: '印章管理'
                }
              },
              {
                path: 'use',
                name: 'use',
                component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
                meta: {
                  title: '印章使用'
                }
              }
            ]
          },
          {
            path: '/management/administrativemanagement/vehiclemanagement',
            redirect: '/financial/administrativemanagement/vehiclemanagement/registration',
            name: 'vehiclemanagement',
            component: () => import('@/views/management/administrativemanagement/vehiclemanagement/index'),
            meta: {
              title: '车辆管理'
            },
            children: [
              // {
              //   path: 'registration',
              //   name: 'registration',
              //   component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
              //   meta: {
              //     title: '车辆服务指南'
              //   }
              // },
              // {
              //   path: 'registration',
              //   name: 'registration',
              //   component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
              //   meta: {
              //     title: '公车使用流程'
              //   }
              // },
              {
                path: 'registration',
                name: 'registration',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
                meta: {
                  title: '车辆使用登记'
                }
              },
              {
                path: 'maintenance',
                name: 'maintenance',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/maintenance/index'),
                meta: {
                  title: '维护和保养'
                }
              }
              /*
              {
                path: 'application',
                name: 'application',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/application/index'),
                meta: {
                  title: '车辆申请'
                }
              },
              {
                path: 'driverinformation',
                name: 'driverinformation',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/driverinformation/index'),
                meta: {
                  title: '司机信息表'
                }
              },
              {
                path: 'vehicleinfo',
                name: 'vehicleinfo',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/vehicleinfo/index'),
                meta: {
                  title: '车辆信息表'
                }
              }
              */
            ]
          },
          {
            path: '/management/administrativemanagement/assetsconsumables',
            name: 'assetsconsumables',
            component: () => import('@/views/management/administrativemanagement/assetsconsumables/index'),
            meta: {
              title: '固定资产和易耗品'
            },
            children: [
              /*
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '固定资产管理办法'
                }
              },
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '固定资产使用流程'
                }
              },
              */
              {
                path: 'assetallocation',
                name: 'assetallocation',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/assetallocation/index'),
                meta: {
                  title: '固定资产配置参考意见'
                }
              },
              {
                path: 'price',
                name: 'price',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/price/index'),
                meta: {
                  title: '价格明细表'
                }
              },
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '采购登记表'
                }
              },
              {
                path: 'assetusage',
                name: 'assetusage',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/assetusage/index'),
                meta: {
                  title: '固定资产盘点表'
                }
              },
              {
                path: 'productsdetail',
                name: 'productsdetail',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/productsdetail/index'),
                meta: {
                  title: '易耗品出入库表'
                }
              },
              {
                path: 'productsuse',
                name: 'productsuse',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/productsuse/index'),
                meta: {
                  title: '易耗品领用登记表'
                }
              }
              /*
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '采购申请单'
                }
              },
              {
                path: 'agreement',
                name: 'agreement',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/agreement/index'),
                meta: {
                  title: '协议酒店'
                }
              },
              {
                path: 'zoneassets',
                name: 'zoneassets',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/zoneassets/index'),
                meta: {
                  title: '区域资产'
                }
              },
              {
                path: 'consumable',
                name: 'consumable',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/consumable/index'),
                meta: {
                  title: '易耗品'
                }
              },
              {
                path: 'totalasset',
                name: 'totalasset',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/totalasset/index'),
                meta: {
                  title: '资产合计'
                }
              }
              */
            ]
          },
          {
            path: '/management/administrativemanagement/environment',
            name: 'environment',
            component: () => import('@/views/management/administrativemanagement/environment/index'),
            meta: {
              title: '环境'
            },
            children: [
              {
                path: 'environmentcheck',
                name: 'environmentcheck',
                component: () => import('@/views/management/administrativemanagement/environment/environmentcheck/index'),
                meta: {
                  title: '环境巡视表'
                }
              },
              {
                path: 'officePlace',
                name: 'officePlace',
                component: () => import('@/views/management/administrativemanagement/environment/officeplace/index'),
                meta: {
                  title: '办公场地座位图'
                }
              },
              {
                path: 'warehousedetail',
                name: 'warehousedetail',
                component: () => import('@/views/management/administrativemanagement/environment/warehousedetail/index'),
                meta: {
                  title: '仓库出入库表'
                }
              }
            ]
          },
          {
            path: '/management/administrativemanagement/logistics',
            name: 'logistics',
            component: () => import('@/views/management/administrativemanagement/logistics/index'),
            meta: {
              title: '后勤'
            },
            children: [
              {
                path: '/management/administrativemanagement/logistics/express',
                name: 'express',
                component: () => import('@/views/management/administrativemanagement/logistics/express/index'),
                meta: {
                  title: '快递'
                },
                children: [
                  {
                    path: 'guide',
                    name: 'guide',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/guide/index'),
                    meta: {
                      title: '寄件指南'
                    }
                  },
                  {
                    path: 'send',
                    name: 'send',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/send/index'),
                    meta: {
                      title: '寄送申请表'
                    }
                  },
                  {
                    path: 'courierpay',
                    name: 'courierpay',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/courierpay/index'),
                    meta: {
                      title: '到付登记表'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/ticket',
                name: 'ticket',
                component: () => import('@/views/management/administrativemanagement/logistics/ticket/index'),
                meta: {
                  title: '票务'
                },
                children: [
                  {
                    path: 'catering',
                    name: 'catering',
                    component: () => import('@/views/management/administrativemanagement/logistics/ticket/catering/index'),
                    meta: {
                      title: '餐饮酒店信息指南'
                    }
                  },
                  {
                    path: 'ticketmanagement',
                    name: 'ticketmanagement',
                    component: () => import('@/views/management/administrativemanagement/logistics/ticket/ticketmanagement/index'),
                    meta: {
                      title: '票务管理'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/meeting',
                name: 'meeting',
                component: () => import('@/views/management/administrativemanagement/logistics/meeting/index'),
                meta: {
                  title: '会务管理'
                },
                children: [
                  /*
                  {
                    path: 'guide',
                    name: 'guide',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/guide/index'),
                    meta: {
                      title: '会议室使用指南'
                    }
                  },
                  */
                  {
                    path: 'userboardroom',
                    name: 'userboardroom',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/userboardroom/index'),
                    meta: {
                      title: '会议室信息登记表'
                    }
                  },
                  {
                    path: 'collectinformation',
                    name: 'collectinformation',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/collectinformation/index'),
                    meta: {
                      title: '会议室信息汇总表'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/administrativetable',
                name: 'administrativetable',
                component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/index'),
                meta: {
                  title: '其他'
                },
                children: [
                  {
                    path: 'supplier',
                    name: 'supplier',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/supplier/index'),
                    meta: {
                      title: '供应商信息表'
                    }
                  },
                  // {
                  //   path: 'supplier',
                  //   name: 'supplier',
                  //   component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/supplier/index'),
                  //   meta: {
                  //     title: '行政费用统计表'
                  //   }
                  // },
                  {
                    path: 'propertydata',
                    name: 'propertydata',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertydata/index'),
                    meta: {
                      title: '物业数据表'
                    }
                  },
                  {
                    path: 'propertysubsidiary',
                    name: 'propertysubsidiary',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertysubsidiary/index'),
                    meta: {
                      title: '物业费用明细'
                    }
                  },
                  {
                    path: 'propertycharge',
                    name: 'propertycharge',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertycharge/index'),
                    meta: {
                      title: '团队月费用表'
                    }
                  },
                  {
                    path: 'contractdeal',
                    name: 'contractdeal',
                    component: () => import('@/views/management/administrativemanagement/record/contractdeal/index'),
                    meta: {
                      title: '合同协议'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/outreach',
                name: 'outreach',
                component: () => import('@/views/management/administrativemanagement/logistics/outreach/index'),
                meta: {
                  title: '外联管理'
                },
                children: [
                  // {
                  //   path: 'schedule',
                  //   name: 'schedule',
                  //   component: () => import('@/views/management/administrativemanagement/logistics/outreach/schedule/index'),
                  //   meta: {
                  //     title: '临时事务执行进度'
                  //   }
                  // },
                  {
                    path: 'docking',
                    name: 'docking',
                    component: () => import('@/views/management/administrativemanagement/logistics/outreach/docking/index'),
                    meta: {
                      title: '外联对接信息名录'
                    }
                  }
                ]
              }
            ]
          }
          /*
          {
            path: '/management/administrativemanagement/record',
            name: 'record',
            component: () => import('@/views/management/administrativemanagement/record/index'),
            meta: {
              title: '档案管理'
            },
            children: [
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '证照证书'
                }
              },
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '公文制度'
                }
              },
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '设备档案'
                }
              }
            ]
          }
          */
        ]
      },
      {
        path: '/management/personnel',
        redirect: '/management/personnel/laborrelations',
        name: 'personnel',
        component: () => import('@/views/management/personnel/index'),
        meta: {
          title: '人事管理'
        },
        children: [
          {
            path: '/management/personnel/staffrelations',
            name: 'staffrelations',
            component: () => import('@/views/management/personnel/staffrelations/index'),
            meta: {
              title: '员工关系'
            },
            children: [
              {
                path: 'personneltransfer',
                name: 'personneltransfer',
                component: () => import('@/views/management/personnel/staffrelations/personneltransfer/index'),
                meta: {
                  title: '人员异动'
                }
              },
              {
                path: '/management/personnel/staffrelations/staffrecords',
                name: 'staffrecords',
                component: () => import('@/views/management/personnel/staffrelations/staffrecords/index'),
                meta: {
                  title: '员工档案'
                },
                children: [
                  {
                    path: 'roster',
                    name: 'roster',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/roster/index'),
                    meta: {
                      title: '花名册'
                    }
                  },
                  {
                    path: 'addressbook',
                    name: 'addressbook',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/addressbook/index'),
                    meta: {
                      title: '通讯录'
                    }
                  },
                  {
                    path: 'employeefiles',
                    name: 'employeefiles',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/employeefiles/index'),
                    meta: {
                      title: '人员档案'
                    }
                  }
                ]
              },
              {
                path: '/management/personnel/staffrelations/insurance',
                name: 'insurance',
                component: () => import('@/views/management/personnel/staffrelations/insurance/index'),
                meta: {
                  title: '社保公积金'
                },
                children: [
                  {
                    path: 'socialsecurity',
                    name: 'socialsecurity',
                    component: () => import('@/views/management/personnel/staffrelations/insurance/socialsecurity/index'),
                    meta: {
                      title: '统计表'
                    }
                  },
                  {
                    path: 'insurancecost',
                    name: 'insurancecost',
                    component: () => import('@/views/management/personnel/staffrelations/insurance/insurancecost/index'),
                    meta: {
                      title: '费用表'
                    }
                  }
                ]
              }
            ]
          },
          // {
          //   path: '/management/personnel/fakeattendance',
          //   name: 'fakeattendance',
          //   component: () => import('@/views/management/personnel/fakeattendance/index'),
          //   meta: {
          //     title: '假勤管理'
          //   },
          //   children: [
          //     {
          //       path: '/management/personnel/fakeattendance/attendancemanagement',
          //       name: 'attendancemanagement',
          //       component: () => import('@/views/management/personnel/fakeattendance/attendancemanagement/index'),
          //       meta: {
          //         title: '考勤管理'
          //       },
          //       children: []
          //     },
          //     {
          //       path: '/management/personnel/fakeattendance/holidaymanagement',
          //       name: 'holidaymanagement',
          //       component: () => import('@/views/management/personnel/fakeattendance/holidaymanagement/index'),
          //       meta: {
          //         title: '假期管理'
          //       },
          //       children: []
          //     }
          //   ]
          // },
          {
            path: '/management/personnel/payrollbenefits',
            redirect: '/management/personnel/payrollbenefits/welfaregive',
            name: 'payrollbenefits',
            component: () => import('@/views/management/personnel/payrollbenefits/index'),
            meta: {
              title: '薪酬福利'
            },
            children: [
              {
                path: '/management/personnel/payrollbenefits/compensation',
                name: 'compensation',
                component: () => import('@/views/management/personnel/payrollbenefits/compensation/index'),
                meta: {
                  title: '薪酬'
                },
                children: [

                  {
                    path: 'employeepay',
                    name: 'employeepay',
                    component: () => import('@/views/management/personnel/payrollbenefits/compensation/employeepay/index'),
                    meta: {
                      title: '人员工资支出'
                    }
                  },
                  {
                    path: 'salaryrequest',
                    name: 'salaryrequest',
                    component: () => import('@/views/management/personnel/payrollbenefits/compensation/salaryrequest/index'),
                    meta: {
                      title: '调薪申请'
                    }
                  }
                ]
              },
              {
                path: '/management/personnel/payrollbenefits/welfare',
                name: 'welfare',
                component: () => import('@/views/management/personnel/payrollbenefits/welfare/index'),
                meta: {
                  title: '福利'
                },
                children: [
                  {
                    path: 'welfaregive',
                    name: 'welfaregive',
                    component: () => import('@/views/management/personnel/payrollbenefits/welfare/welfaregive/index'),
                    meta: {
                      title: '福利登记总表'
                    }
                  },
                  {
                    path: 'welfaregivechild',
                    name: 'welfaregivechild',
                    component: () => import('@/views/management/personnel/payrollbenefits/welfare/welfaregivechild/index'),
                    meta: {
                      title: '福利登记分表'
                    }
                  }
                ]
              }
            ]
          },
          {
            path: '/management/personnel/recruitment',
            redirect: '/management/personnel/recruitment/requirement',
            name: 'recruitment',
            component: () => import('@/views/management/personnel/recruitment/index'),
            meta: {
              title: '招聘管理'
            },
            children: [
              {
                path: 'requirement',
                name: 'requirement',
                component: () => import('@/views/management/personnel/recruitment/requirement/index'),
                meta: {
                  title: '人员需求'
                }
              },
              {
                path: 'feedback',
                name: 'feedback',
                component: () => import('@/views/management/personnel/recruitment/feedback/index'),
                meta: {
                  title: '招聘反馈'
                }
              }
            ]
          }
        ]
      }
    ]
  },
  {
    path: '/publicresources',
    redirect: '/publicresources/administration',
    component: Layout,
    name: 'publicresources',
    meta: {
      title: '公共资源',
      icon: 'publicresources'
    },
    children: [
      {
        path: '/publicresources/personnelinformation',
        redirect: '/publicresources/personnelinformation/annualrecord',
        name: 'personnelinformation',
        component: () => import('@/views/publicresources/personnelinformation/index'),
        meta: {
          title: '人员信息查询'
        },
        children: [
          {
            path: 'addressbook',
            name: 'addressbook',
            component: () => import('@/views/management/personnel/staffrelations/staffrecords/addressbook/index'),
            meta: {
              title: '通讯录'
            }
          },
          {
            path: 'bidemployee',
            name: 'bidemployee',
            component: () => import('@/views/publicresources/personnelinformation/bidemployee/index'),
            meta: {
              title: '招投标人员信息'
            }
          }
        ]
      },
      {
        path: '/publicresources/records',
        redirect: '/publicresources/records/annualrecord',
        name: 'records',
        component: () => import('@/views/publicresources/records/index'),
        meta: {
          title: '备案信息查询'
        },
        children: [
          {
            path: 'annualrecord',
            name: 'annualrecord',
            component: () => import('@/views/publicresources/records/annualrecord/index'),
            meta: {
              title: '年度备案'
            }
          },
          {
            path: 'enterpriserecord',
            name: 'enterpriserecord',
            component: () => import('@/views/publicresources/records/enterpriserecord/index'),
            meta: {
              title: '企业备案'
            }
          },
          {
            path: 'projectrecord',
            name: 'projectrecord',
            component: () => import('@/views/publicresources/records/projectrecord/index'),
            meta: {
              title: '项目备案'
            }
          }
        ]
      },
      {
        path: 'warehousing',
        name: 'warehousing',
        component: () => import('@/views/publicresources/warehousing/index'),
        meta: {
          title: '入库信息查询'
        }
      },
      {
        path: 'enterpriseinformation',
        name: 'enterpriseinformation',
        component: () => import('@/views/publicresources/enterpriseinformation/index'),
        meta: {
          title: '企业资料下载'
        }
      },
      {
        path: 'results',
        name: 'results',
        component: () => import('@/views/publicresources/results/index'),
        meta: {
          title: '业绩信息查询'
        }
      },
      {
        path: 'institution',
        name: 'institution',
        component: () => import('@/views/publicresources/institution/index'),
        meta: {
          title: '制度信息查询'
        }
      },
      {
        path: 'systemfiles',
        name: 'systemfiles',
        component: () => import('@/views/publicresources/systemfiles/index'),
        meta: {
          title: '制度档案查询'
        }
      },
      {
        path: 'openballot',
        name: 'openballot',
        component: () => import('@/views/publicresources/openballot/index'),
        meta: {
          title: '开票信息查询'
        }
      },
      {
        path: 'tendercenter',
        name: 'tendercenter',
        component: () => import('@/views/publicresources/tendercenter/index'),
        meta: {
          title: '交易账号查询'
        }
      }
    ]
  },
  {
    path: '/biddingcolumn',
    component: Layout,
    name: 'biddingcolumn',
    meta: {
      title: '招投标专栏',
      icon: 'biddingcolumn'
    },
    children: [
      {
        path: 'enterpriseinformation',
        name: 'enterpriseinformation',
        component: () => import('@/views/publicresources/enterpriseinformation/index'),
        meta: {
          title: '企业资料下载'
        }
      },
      {
        path: '/biddingcolumn/achievement',
        name: 'achievement',
        component: () => import('@/views/biddingcolumn/achievement/index'),
        meta: {
          title: '业绩'
        },
        children: [
          {
            path: 'design',
            name: 'design',
            component: () => import('@/views/biddingcolumn/achievement/design/index'),
            meta: {
              title: '设计'
            }
          },
          {
            path: 'epc',
            name: 'epc',
            component: () => import('@/views/biddingcolumn/achievement/epc/index'),
            meta: {
              title: 'EPC'
            }
          }
        ]
      },
      {
        path: 'staff',
        name: 'staff',
        component: () => import('@/views/biddingcolumn/staff/index'),
        meta: {
          title: '人员'
        }
      },
      {
        path: 'other',
        name: 'other',
        component: () => import('@/views/biddingcolumn/other/index'),
        meta: {
          title: '纳税社保审计'
        }
      },
      // {
      //   path: 'biddingproject',
      //   name: 'biddingproject',
      //   component: () => import('@/views/biddingcolumn/biddingproject/index'),
      //   meta: {
      //     title: '投标项目结果'
      //   }
      // },
      {
        path: 'tenders',
        name: 'tenders',
        component: () => import('@/views/biddingcolumn/tenders/index'),
        meta: {
          title: '投标项目结果'
        }
      }
    ]
  },
  {
    path: '/administrative',
    redirect: '/administrative/infotype',
    component: Layout,
    name: 'administrative',
    meta: { title: '系统配置', icon: 'administrative' },
    children: [
      {
        path: 'infotype',
        name: 'infotype',
        component: () => import('@/views/administrative/infotype/index'),
        meta: {
          title: '资料类型'
        }
      },
      {
        path: 'costtype',
        name: 'costtype',
        component: () => import('@/views/administrative/costtype/index'),
        meta: {
          title: '支出类型'
        }
      },
      // {
      //   path: 'arrivaltype',
      //   name: 'arrivaltype',
      //   component: () => import('@/views/administrative/arrivaltype/index'),
      //   meta: {
      //     title: '到账类型'
      //   }
      // },
      {
        path: 'users',
        name: 'users',
        component: () => import('@/views/administrative/users/index'),
        meta: {
          title: '登录账户管理'
        }
      },
      {
        path: 'rolemanage',
        name: 'rolemanage',
        component: () => import('@/views/administrative/rolemanage/index'),
        meta: {
          title: '角色管理'
        }
      },
      {
        path: 'loginlog',
        name: 'loginlog',
        component: () => import('@/views/administrative/loginlog/index'),
        meta: {
          title: '登录信息'
        }
      }
    ]
  },
  {
    path: '/technology',
    redirect: '/technology/design',
    component: Layout,
    name: 'technology',
    meta: { title: '技术中心', icon: 'technology' },
    children: [
      {
        path: 'blueprints',
        name: 'blueprints',
        component: () => import('@/views/technology/blueprints/index'),
        meta: {
          title: '图纸文本登记'
        }
      },
      {
        path: 'strongbarregistration',
        name: 'strongbarregistration',
        component: () => import('@/views/technology/strongbarregistration/index'),
        meta: {
          title: '强条登记'
        }
      },
      {
        path: 'reviewrecord',
        name: 'reviewrecord',
        component: () => import('@/views/technology/reviewrecord/index'),
        meta: {
          title: '审校记录'
        }
      },
      {
        path: 'chartdata',
        name: 'chartdata',
        component: () => import('@/views/technology/chartdata/index'),
        meta: {
          title: '院审数据'
        }
      },
      {
        path: 'drawingefficiency',
        name: 'drawingefficiency',
        component: () => import('@/views/technology/drawingefficiency/index'),
        meta: {
          title: '审图效率'
        }
      },
      {
        path: 'chartreview',
        name: 'chartreview',
        component: () => import('@/views/technology/chartreview/index'),
        meta: {
          title: '图审数据'
        }
      },
      {
        path: 'electronicseal',
        name: 'electronicseal',
        component: () => import('@/views/technology/electronicseal/index'),
        meta: {
          title: '电子章登记'
        }
      },
      {
        path: 'fourreview',
        name: 'fourreview',
        component: () => import('@/views/technology/fourreview/index'),
        meta: {
          title: '四审登记'
        }
      },
      {
        path: 'paper',
        name: 'paper',
        component: () => import('@/views/technology/paper/index'),
        meta: {
          title: '图纸归档'
        }
      }
    ]
  },
  // {
  //   path: '/branchmanagement',
  //   component: Layout,
  //   name: 'branchmanagement',
  //   meta: {
  //     title: '分公司管理',
  //     icon: 'branchmanagement'
  //   },
  //   children: [
  //     {
  //       path: 'branchinformation',
  //       name: 'branchinformation',
  //       component: () => import('@/views/branchmanagement/branchinformation/index'),
  //       meta: {
  //         title: '分公司信息概况'
  //       }
  //     },
  //     {
  //       path: 'persondetails',
  //       name: 'persondetails',
  //       component: () => import('@/views/branchmanagement/persondetails/index'),
  //       meta: {
  //         title: '人员明细查询'
  //       }
  //     },
  //     {
  //       path: 'projectdetails',
  //       name: 'projectdetails',
  //       component: () => import('@/views/branchmanagement/projectdetails/index'),
  //       meta: {
  //         title: '项目明细查询'
  //       }
  //     },
  //     {
  //       path: 'teambalance',
  //       name: 'teambalance',
  //       component: () => import('@/views/branchmanagement/teambalance/index'),
  //       meta: {
  //         title: '团队账目明细'
  //       }
  //     }
  //   ]
  // },
  {
    path: '/informationmanagement',
    component: Layout,
    name: 'informationmanagement',
    meta: { title: '信息管理', icon: 'informationmanagement' },
    children: [
      {
        path: '/management/personnel',
        redirect: '/management/personnel/laborrelations',
        name: 'personnel',
        component: () => import('@/views/management/personnel/index'),
        meta: {
          title: '人事管理'
        },
        children: [
          {
            path: '/management/personnel/staffrelations',
            name: 'staffrelations',
            component: () => import('@/views/management/personnel/staffrelations/index'),
            meta: {
              title: '员工关系'
            },
            children: [
              {
                path: 'personneltransfer',
                name: 'personneltransfer',
                component: () => import('@/views/management/personnel/staffrelations/personneltransfer/index'),
                meta: {
                  title: '人员异动'
                }
              },
              {
                path: '/management/personnel/staffrelations/staffrecords',
                name: 'staffrecords',
                component: () => import('@/views/management/personnel/staffrelations/staffrecords/index'),
                meta: {
                  title: '员工档案'
                },
                children: [
                  {
                    path: 'roster',
                    name: 'roster',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/roster/index'),
                    meta: {
                      title: '花名册'
                    }
                  },
                  {
                    path: 'addressbook',
                    name: 'addressbook',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/addressbook/index'),
                    meta: {
                      title: '通讯录'
                    }
                  },
                  {
                    path: 'employeefiles',
                    name: 'employeefiles',
                    component: () => import('@/views/management/personnel/staffrelations/staffrecords/employeefiles/index'),
                    meta: {
                      title: '人员档案'
                    }
                  }
                ]
              },
              {
                path: '/management/personnel/staffrelations/insurance',
                name: 'insurance',
                component: () => import('@/views/management/personnel/staffrelations/insurance/index'),
                meta: {
                  title: '社保公积金'
                },
                children: [
                  {
                    path: 'socialsecurity',
                    name: 'socialsecurity',
                    component: () => import('@/views/management/personnel/staffrelations/insurance/socialsecurity/index'),
                    meta: {
                      title: '统计表'
                    }
                  },
                  {
                    path: 'insurancecost',
                    name: 'insurancecost',
                    component: () => import('@/views/management/personnel/staffrelations/insurance/insurancecost/index'),
                    meta: {
                      title: '费用表'
                    }
                  }
                ]
              }
            ]
          },
          // {
          //   path: '/management/personnel/fakeattendance',
          //   name: 'fakeattendance',
          //   component: () => import('@/views/management/personnel/fakeattendance/index'),
          //   meta: {
          //     title: '假勤管理'
          //   },
          //   children: [
          //     {
          //       path: '/management/personnel/fakeattendance/attendancemanagement',
          //       name: 'attendancemanagement',
          //       component: () => import('@/views/management/personnel/fakeattendance/attendancemanagement/index'),
          //       meta: {
          //         title: '考勤管理'
          //       },
          //       children: []
          //     },
          //     {
          //       path: '/management/personnel/fakeattendance/holidaymanagement',
          //       name: 'holidaymanagement',
          //       component: () => import('@/views/management/personnel/fakeattendance/holidaymanagement/index'),
          //       meta: {
          //         title: '假期管理'
          //       },
          //       children: []
          //     }
          //   ]
          // },
          {
            path: '/management/personnel/payrollbenefits',
            redirect: '/management/personnel/payrollbenefits/welfaregive',
            name: 'payrollbenefits',
            component: () => import('@/views/management/personnel/payrollbenefits/index'),
            meta: {
              title: '薪酬福利'
            },
            children: [
              {
                path: '/management/personnel/payrollbenefits/compensation',
                name: 'compensation',
                component: () => import('@/views/management/personnel/payrollbenefits/compensation/index'),
                meta: {
                  title: '薪酬'
                },
                children: [

                  {
                    path: 'employeepay',
                    name: 'employeepay',
                    component: () => import('@/views/management/personnel/payrollbenefits/compensation/employeepay/index'),
                    meta: {
                      title: '人员工资支出'
                    }
                  },
                  {
                    path: 'salaryrequest',
                    name: 'salaryrequest',
                    component: () => import('@/views/management/personnel/payrollbenefits/compensation/salaryrequest/index'),
                    meta: {
                      title: '调薪申请'
                    }
                  }
                ]
              },
              {
                path: '/management/personnel/payrollbenefits/welfare',
                name: 'welfare',
                component: () => import('@/views/management/personnel/payrollbenefits/welfare/index'),
                meta: {
                  title: '福利'
                },
                children: [
                  {
                    path: 'welfaregive',
                    name: 'welfaregive',
                    component: () => import('@/views/management/personnel/payrollbenefits/welfare/welfaregive/index'),
                    meta: {
                      title: '福利登记总表'
                    }
                  },
                  {
                    path: 'welfaregivechild',
                    name: 'welfaregivechild',
                    component: () => import('@/views/management/personnel/payrollbenefits/welfare/welfaregivechild/index'),
                    meta: {
                      title: '福利登记分表'
                    }
                  }
                ]
              }
            ]
          },
          {
            path: '/management/personnel/recruitment',
            redirect: '/management/personnel/recruitment/requirement',
            name: 'recruitment',
            component: () => import('@/views/management/personnel/recruitment/index'),
            meta: {
              title: '招聘管理'
            },
            children: [
              {
                path: 'requirement',
                name: 'requirement',
                component: () => import('@/views/management/personnel/recruitment/requirement/index'),
                meta: {
                  title: '人员需求'
                }
              },
              {
                path: 'feedback',
                name: 'feedback',
                component: () => import('@/views/management/personnel/recruitment/feedback/index'),
                meta: {
                  title: '招聘反馈'
                }
              }
            ]
          }
        ]
      },
      {
        path: '/management/administrativemanagement',
        redirect: '/financial/administrativemanagement/assetsconsumables',
        name: 'administrativemanagement',
        component: () => import('@/views/management/administrativemanagement/index'),
        meta: {
          title: '行政管理'
        },
        children: [
          {
            path: '/management/administrativemanagement/sealmanagement',
            redirect: '/financial/administrativemanagement/sealmanagement/use',
            name: 'sealmanagement',
            component: () => import('@/views/management/administrativemanagement/sealmanagement/index'),
            meta: {
              title: '印章管理'
            },
            children: [
              // {
              //   path: 'use',
              //   name: 'use',
              //   component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
              //   meta: {
              //     title: '印章管理制度'
              //   }
              // },
              // {
              //   path: 'use',
              //   name: 'use',
              //   component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
              //   meta: {
              //     title: '印章使用流程'
              //   }
              // },
              {
                path: 'sealmanagementchild',
                name: 'sealmanagementchild',
                component: () => import('@/views/management/administrativemanagement/sealmanagement/sealmanagementchild/index'),
                meta: {
                  title: '印章管理'
                }
              },
              {
                path: 'use',
                name: 'use',
                component: () => import('@/views/management/administrativemanagement/sealmanagement/use/index'),
                meta: {
                  title: '印章使用'
                }
              }
            ]
          },
          {
            path: '/management/administrativemanagement/vehiclemanagement',
            redirect: '/financial/administrativemanagement/vehiclemanagement/registration',
            name: 'vehiclemanagement',
            component: () => import('@/views/management/administrativemanagement/vehiclemanagement/index'),
            meta: {
              title: '车辆管理'
            },
            children: [
              // {
              //   path: 'registration',
              //   name: 'registration',
              //   component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
              //   meta: {
              //     title: '车辆服务指南'
              //   }
              // },
              // {
              //   path: 'registration',
              //   name: 'registration',
              //   component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
              //   meta: {
              //     title: '公车使用流程'
              //   }
              // },
              {
                path: 'registration',
                name: 'registration',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/registration/index'),
                meta: {
                  title: '车辆使用登记'
                }
              },
              {
                path: 'maintenance',
                name: 'maintenance',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/maintenance/index'),
                meta: {
                  title: '维护和保养'
                }
              }
              /*
              {
                path: 'application',
                name: 'application',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/application/index'),
                meta: {
                  title: '车辆申请'
                }
              },
              {
                path: 'driverinformation',
                name: 'driverinformation',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/driverinformation/index'),
                meta: {
                  title: '司机信息表'
                }
              },
              {
                path: 'vehicleinfo',
                name: 'vehicleinfo',
                component: () => import('@/views/management/administrativemanagement/vehiclemanagement/vehicleinfo/index'),
                meta: {
                  title: '车辆信息表'
                }
              }
              */
            ]
          },
          {
            path: '/management/administrativemanagement/assetsconsumables',
            name: 'assetsconsumables',
            component: () => import('@/views/management/administrativemanagement/assetsconsumables/index'),
            meta: {
              title: '固定资产和易耗品'
            },
            children: [
              /*
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '固定资产管理办法'
                }
              },
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '固定资产使用流程'
                }
              },
              */
              {
                path: 'assetallocation',
                name: 'assetallocation',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/assetallocation/index'),
                meta: {
                  title: '固定资产配置参考意见'
                }
              },
              {
                path: 'price',
                name: 'price',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/price/index'),
                meta: {
                  title: '价格明细表'
                }
              },
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '采购登记表'
                }
              },
              {
                path: 'assetusage',
                name: 'assetusage',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/assetusage/index'),
                meta: {
                  title: '固定资产盘点表'
                }
              },
              {
                path: 'productsdetail',
                name: 'productsdetail',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/productsdetail/index'),
                meta: {
                  title: '易耗品出入库表'
                }
              },
              {
                path: 'productsuse',
                name: 'productsuse',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/productsuse/index'),
                meta: {
                  title: '易耗品领用登记表'
                }
              }
              /*
              {
                path: 'purchaserequisition',
                name: 'purchaserequisition',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/purchaserequisition/index'),
                meta: {
                  title: '采购申请单'
                }
              },
              {
                path: 'agreement',
                name: 'agreement',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/agreement/index'),
                meta: {
                  title: '协议酒店'
                }
              },
              {
                path: 'zoneassets',
                name: 'zoneassets',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/zoneassets/index'),
                meta: {
                  title: '区域资产'
                }
              },
              {
                path: 'consumable',
                name: 'consumable',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/consumable/index'),
                meta: {
                  title: '易耗品'
                }
              },
              {
                path: 'totalasset',
                name: 'totalasset',
                component: () => import('@/views/management/administrativemanagement/assetsconsumables/totalasset/index'),
                meta: {
                  title: '资产合计'
                }
              }
              */
            ]
          },
          {
            path: '/management/administrativemanagement/environment',
            name: 'environment',
            component: () => import('@/views/management/administrativemanagement/environment/index'),
            meta: {
              title: '环境'
            },
            children: [
              {
                path: 'environmentcheck',
                name: 'environmentcheck',
                component: () => import('@/views/management/administrativemanagement/environment/environmentcheck/index'),
                meta: {
                  title: '环境巡视表'
                }
              },
              {
                path: 'officePlace',
                name: 'officePlace',
                component: () => import('@/views/management/administrativemanagement/environment/officeplace/index'),
                meta: {
                  title: '办公场地座位图'
                }
              },
              {
                path: 'warehousedetail',
                name: 'warehousedetail',
                component: () => import('@/views/management/administrativemanagement/environment/warehousedetail/index'),
                meta: {
                  title: '仓库出入库表'
                }
              }
            ]
          },
          {
            path: '/management/administrativemanagement/logistics',
            name: 'logistics',
            component: () => import('@/views/management/administrativemanagement/logistics/index'),
            meta: {
              title: '后勤'
            },
            children: [
              {
                path: '/management/administrativemanagement/logistics/express',
                name: 'express',
                component: () => import('@/views/management/administrativemanagement/logistics/express/index'),
                meta: {
                  title: '快递'
                },
                children: [
                  {
                    path: 'guide',
                    name: 'guide',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/guide/index'),
                    meta: {
                      title: '寄件指南'
                    }
                  },
                  {
                    path: 'send',
                    name: 'send',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/send/index'),
                    meta: {
                      title: '寄送申请表'
                    }
                  },
                  {
                    path: 'courierpay',
                    name: 'courierpay',
                    component: () => import('@/views/management/administrativemanagement/logistics/express/courierpay/index'),
                    meta: {
                      title: '到付登记表'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/ticket',
                name: 'ticket',
                component: () => import('@/views/management/administrativemanagement/logistics/ticket/index'),
                meta: {
                  title: '票务'
                },
                children: [
                  {
                    path: 'catering',
                    name: 'catering',
                    component: () => import('@/views/management/administrativemanagement/logistics/ticket/catering/index'),
                    meta: {
                      title: '餐饮酒店信息指南'
                    }
                  },
                  {
                    path: 'ticketmanagement',
                    name: 'ticketmanagement',
                    component: () => import('@/views/management/administrativemanagement/logistics/ticket/ticketmanagement/index'),
                    meta: {
                      title: '票务管理'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/meeting',
                name: 'meeting',
                component: () => import('@/views/management/administrativemanagement/logistics/meeting/index'),
                meta: {
                  title: '会务管理'
                },
                children: [
                  /*
                  {
                    path: 'guide',
                    name: 'guide',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/guide/index'),
                    meta: {
                      title: '会议室使用指南'
                    }
                  },
                  */
                  {
                    path: 'userboardroom',
                    name: 'userboardroom',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/userboardroom/index'),
                    meta: {
                      title: '会议室信息登记表'
                    }
                  },
                  {
                    path: 'collectinformation',
                    name: 'collectinformation',
                    component: () => import('@/views/management/administrativemanagement/logistics/meeting/collectinformation/index'),
                    meta: {
                      title: '会议室信息汇总表'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/administrativetable',
                name: 'administrativetable',
                component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/index'),
                meta: {
                  title: '其他'
                },
                children: [
                  {
                    path: 'supplier',
                    name: 'supplier',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/supplier/index'),
                    meta: {
                      title: '供应商信息表'
                    }
                  },
                  // {
                  //   path: 'supplier',
                  //   name: 'supplier',
                  //   component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/supplier/index'),
                  //   meta: {
                  //     title: '行政费用统计表'
                  //   }
                  // },
                  {
                    path: 'propertydata',
                    name: 'propertydata',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertydata/index'),
                    meta: {
                      title: '物业数据表'
                    }
                  },
                  {
                    path: 'propertysubsidiary',
                    name: 'propertysubsidiary',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertysubsidiary/index'),
                    meta: {
                      title: '物业费用明细'
                    }
                  },
                  {
                    path: 'propertycharge',
                    name: 'propertycharge',
                    component: () => import('@/views/management/administrativemanagement/logistics/administrativetable/propertycharge/index'),
                    meta: {
                      title: '团队月费用表'
                    }
                  },
                  {
                    path: 'contractdeal',
                    name: 'contractdeal',
                    component: () => import('@/views/management/administrativemanagement/record/contractdeal/index'),
                    meta: {
                      title: '合同协议'
                    }
                  }
                ]
              },
              {
                path: '/management/administrativemanagement/logistics/outreach',
                name: 'outreach',
                component: () => import('@/views/management/administrativemanagement/logistics/outreach/index'),
                meta: {
                  title: '外联管理'
                },
                children: [
                  // {
                  //   path: 'schedule',
                  //   name: 'schedule',
                  //   component: () => import('@/views/management/administrativemanagement/logistics/outreach/schedule/index'),
                  //   meta: {
                  //     title: '临时事务执行进度'
                  //   }
                  // },
                  {
                    path: 'docking',
                    name: 'docking',
                    component: () => import('@/views/management/administrativemanagement/logistics/outreach/docking/index'),
                    meta: {
                      title: '外联对接信息名录'
                    }
                  }
                ]
              }
            ]
          }
          /*
          {
            path: '/management/administrativemanagement/record',
            name: 'record',
            component: () => import('@/views/management/administrativemanagement/record/index'),
            meta: {
              title: '档案管理'
            },
            children: [
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '证照证书'
                }
              },
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '公文制度'
                }
              },
              {
                path: 'certificate',
                name: 'certificate',
                component: () => import('@/views/management/administrativemanagement/record/certificate/index'),
                meta: {
                  title: '设备档案'
                }
              }
            ]
          }
          */
        ]
      },
      {
        path: 'contractproject',
        name: 'contractproject',
        component: () => import('@/views/operating/contractproject/index'),
        meta: {
          title: '合同项目管理'
        }
      },
      {
        path: 'tenders',
        name: 'tenders',
        component: () => import('@/views/operating/tenders/index'),
        meta: {
          title: '招投标项目管理'
        }
      },
      {
        path: 'projectreport',
        name: 'projectreport',
        component: () => import('@/views/operating/projectreport/index'),
        meta: {
          title: '项目报备'
        }
      },
      {
        path: '/informationmanagement/financialmanagement',
        redirect: '/informationmanagement/financialmanagement/bankbalance',
        name: 'financialmanagement',
        component: () => import('@/views/informationmanagement/financialmanagement/index'),
        meta: {
          title: '财务管理'
        },
        children: [
          {
            path: 'bankbalance',
            name: 'bankbalance',
            component: () => import('@/views/financial/bankbalance/index'),
            meta: {
              title: '资金管理'
            }
          },
          {
            path: '/informationmanagement/financialmanagement/expenditure',
            redirect: '/informationmanagement/financialmanagement/expenditure/costproject',
            name: 'expenditure',
            component: () => import('@/views/financial/expenditure/index'),
            meta: {
              title: '报销管理'
            },
            children: [
              {
                path: 'costproject',
                name: 'costproject',
                component: () => import('@/views/financial/expenditure/costproject/index'),
                meta: {
                  title: '成本支出'
                }
              },
              {
                path: 'costbrandbuild',
                name: 'costbrandbuild',
                component: () => import('@/views/financial/expenditure/costbrandbuild/index'),
                meta: {
                  title: '品牌构建支出'
                }
              }
            ]
          },
          {
            path: 'invoice',
            name: 'invoice',
            component: () => import('@/views/financial/invoice/index'),
            meta: {
              title: '开票管理'
            }
          },
          {
            path: 'tenderdeposit',
            name: 'tenderdeposit',
            component: () => import('@/views/financial/tenderdeposit/index'),
            meta: {
              title: '投标保证金管理'
            }
          },
          {
            path: 'projectdeposit',
            name: 'projectdeposit',
            component: () => import('@/views/financial/projectdeposit/index'),
            meta: {
              title: '履约保证金管理'
            }
          },
          {
            path: '/informationmanagement/financialmanagement/toaccount',
            redirect: '/informationmanagement/financialmanagement/toaccount/projectcontrac',
            name: 'toaccount',
            component: () => import('@/views/financial/toaccount/index'),
            meta: {
              title: '到账管理'
            },
            children: [
              {
                path: 'projectcontrac',
                name: 'projectcontrac',
                component: () => import('@/views/financial/toaccount/projectcontrac/index'),
                meta: {
                  title: '合同到账'
                }
              },
              {
                path: 'tendercompensation',
                name: 'tendercompensation',
                component: () => import('@/views/financial/toaccount/tendercompensation/index'),
                meta: {
                  title: '投标补偿金到账'
                }
              },
              {
                path: 'currentaccount',
                name: 'currentaccount',
                component: () => import('@/views/financial/toaccount/currentaccount/index'),
                meta: {
                  title: '往来账'
                }
              },
              {
                path: 'otherfees',
                name: 'otherfees',
                component: () => import('@/views/financial/toaccount/otherfees/index'),
                meta: {
                  title: '其他到账'
                }
              }
            ]
          },
          {
            path: 'monthreport',
            name: 'monthreport',
            component: () => import('@/views/financial/monthreport/index'),
            meta: {
              title: '月报表'
            }
          }
        ]
      }
    ]
  },
  {
    path: '/branchservices',
    component: Layout,
    name: 'branchservices',
    meta: { title: '分公司服务', icon: 'branchservices' },
    children: [
      {
        path: '/branchservices/tenderservice',
        name: 'tenderservice',
        component: () => import('@/views/branchservices/tenderservice/index'),
        meta: {
          title: '投标服务'
        },
        children: [
          {
            path: 'projectcontrac',
            name: 'projectcontrac',
            component: () => import('@/views/financial/toaccount/projectcontrac/index'),
            meta: {
              title: '便捷投标'
            }
          },
          {
            path: 'tenders',
            name: 'tenders',
            component: () => import('@/views/branchservices/tenderservice/tenders/index'),
            meta: {
              title: '投标管理'
            }
          }
        ]
      },
      {
        path: 'contractproject',
        name: 'contractproject',
        component: () => import('@/views/branchservices/contractproject/index'),
        meta: {
          title: '合同服务'
        }
      },
      {
        path: 'flowchart',
        name: 'flowchart',
        component: () => import('@/views/branchservices/flowchart/index'),
        meta: {
          title: '服务流程图'
        }
      }
    ]
  },
  {
    path: '/publicresourcedetails',
    redirect: '/publicresourcedetails/persondetails',
    component: Layout,
    name: 'publicresourcedetails',
    meta: {
      title: '生产明细查询',
      icon: 'publicresourcedetails'
    },
    children: [
      {
        path: 'bankbalance',
        name: 'bankbalance',
        component: () => import('@/views/financial/bankbalance/index'),
        meta: {
          title: '银行账管理'
        }
      },
      {
        path: 'persondetails',
        name: 'persondetails',
        component: () => import('@/views/publicresourcedetails/persondetails/index'),
        meta: {
          title: '人员明细查询'
        }
      },
      {
        path: 'projectdetails',
        name: 'projectdetails',
        component: () => import('@/views/publicresourcedetails/projectdetails/index'),
        meta: {
          title: '项目明细查询'
        }
      },
      // {
      //   path: '/publicresourcedetails/financialdetails',
      //   redirect: '/publicresourcedetails/financialdetails/account',
      //   name: 'financialdetails',
      //   component: () => import('@/views/publicresourcedetails/financialdetails/index'),
      //   meta: {
      //     title: '财务明细'
      //   },
      //   children: [
      //     {
      //       path: '/publicresourcedetails/financialdetails/financialoverview',
      //       redirect: '/publicresourcedetails/financialdetails/financialoverview/arrival',
      //       component: () => import('@/views/publicresourcedetails/financialdetails/financialoverview/index'),
      //       name: 'financialoverview',
      //       meta: {
      //         title: '账目查询'
      //       },
      //       children: [
      //         {
      //           path: 'arrival',
      //           name: 'arrival',
      //           component: () => import('@/views/publicresourcedetails/financialdetails/financialoverview/arrival/index'),
      //           meta: {
      //             title: '到账'
      //           }
      //         },
      //         {
      //           path: 'pay',
      //           name: 'pay',
      //           component: () => import('@/views/publicresourcedetails/financialdetails/financialoverview/pay/index'),
      //           meta: {
      //             title: '出账'
      //           }
      //         }
      //       ]
      //     },
      //     {
      //       path: 'affiliated',
      //       name: 'affiliated',
      //       component: () => import('@/views/publicresourcedetails/financialdetails/affiliated/index'),
      //       meta: {
      //         title: '合同账目'
      //       }
      //     },
      //     // {
      //     //   path: 'accountsquery',
      //     //   name: 'accountsquery',
      //     //   component: () => import('@/views/publicresourcedetails/financialdetails/accountsquery/index'),
      //     //   meta: {
      //     //     title: '账目查询'
      //     //   }
      //     // },
      //     // {
      //     //   path: 'teamprofits',
      //     //   name: 'teamprofits',
      //     //   component: () => import('@/views/publicresourcedetails/financialdetails/teamprofits/index'),
      //     //   meta: {
      //     //     title: '团队利润'
      //     //   }
      //     // },
      //
      //   ]
      // },
      {
        path: '/publicresourcedetails/teambalance',
        name: 'teambalance',
        component: () => import('@/views/publicresourcedetails/teambalance/index'),
        meta: {
          title: '团队账目明细'
        },
        children: [
          {
            path: 'headoffice',
            name: 'headoffice',
            component: () => import('@/views/publicresourcedetails/teambalance/headoffice/index'),
            meta: {
              title: '总公司明细'
            }
          },
          {
            path: 'branch',
            name: 'branch',
            component: () => import('@/views/publicresourcedetails/teambalance/branch/index'),
            meta: {
              title: '分公司明细'
            }
          }
        ]
      },
      {
        path: 'teamsettlement',
        name: 'teamsettlement',
        component: () => import('@/views/publicresourcedetails/teamsettlement/index'),
        meta: {
          title: '团队结算'
        }
      },
      {
        path: 'paymentdetails',
        name: 'paymentdetails',
        component: () => import('@/views/publicresourcedetails/paymentdetails/index'),
        meta: {
          title: '总院收支明细'
        }
      },
      {
        path: 'projectreport',
        name: 'projectreport',
        component: () => import('@/views/operating/projectreport/index'),
        meta: {
          title: '项目报备'
        }
      },
      {
        path: 'globalindex',
        name: 'globalindex',
        component: () => import('@/views/publicresourcedetails/globalindex/index'),
        meta: {
          title: '全局索引'
        }
      }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]
